
using System;
using System.Collections.Generic;
using System.Text;
using System.Xml;
using System.Windows.Forms;
using BENBUN.Properties;
using BENBUN.Utils;
using ZoneFiveSoftware.Common.Visuals.Fitness;

namespace BENBUN.WIW
{

    class Plugin : IPlugin
    {
        private static IApplication application;

        public static IApplication GetApplication()
        {
            return application;
        }

        public void ReadOptions(XmlDocument xmlDoc, XmlNamespaceManager nsmgr, XmlElement pluginNode)
        {
            if ((Settings.Settings.ForumUsername == "") || (Settings.Settings.ForumPassword == "" ))
            {
                MessageBox.Show("Please check your settings for the Where in The World plugin, your security details are missing","Plugin : Where in the World");
            }
        }

        public void WriteOptions(XmlDocument xmlDoc, XmlElement pluginNode)
        {
        }

        public IApplication Application
        {
            set { application = value; }
        }

        public Guid Id
        {
            get { return GUIDStore.PluginID; }
        }

        public string Name
        {
            get { return Resources.PluginName; }
        }

        public string Version
        {
            get { return GetType().Assembly.GetName().Version.ToString(3); }
        }




        

    }





}
